* nsterm.m (ns_read_socket): Return early if there is a modal window.
authorJan D. <jan.h.d@swipnet.se>
Wed, 25 Jul 2012 17:31:34 +0000 (19:31 +0200)
committerJan D. <jan.h.d@swipnet.se>
Wed, 25 Jul 2012 17:31:34 +0000 (19:31 +0200)
src/ChangeLog
src/nsterm.m

index 0d74b883428ca7b1fd9a1a1839959eeaff1e8d13..e3d842f0f9074329bf45dfd15d88bc79c57b923d 100644 (file)
@@ -1,3 +1,8 @@
+2012-07-25  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * nsterm.m (ns_read_socket): Return early if there is a modal
+       window (Bug#12043).
+
 2012-07-25  Martin Rudalics  <rudalics@gmx.at>
 
        * frame.c (Fredirect_frame_focus): In doc-string don't mention
index e018ea349105911ae801603c0914e30e67d63276..1f06d49c5b9d6b4585f3334869d178ba310b41a4 100644 (file)
@@ -3411,6 +3411,9 @@ ns_read_socket (struct terminal *terminal, int expected,
 
 /* NSTRACE (ns_read_socket); */
 
+  if ([NSApp modalWindow] != nil)
+    return -1;
+
   if (interrupt_input_blocked)
     {
       interrupt_input_pending = 1;